package com.redteam.data.enums;

/**
 * Contains value and methods of <code>Pilot</code> <code>Endorsement</code>.
 * @author Jezreel Wilson
 */
public enum Endorsement {

    /**
     * <code>Endorsement</code> type of Solo Sign-off
     */
    studentPilot("studentPilot"),
    /**
     * <code>Endorsement</code> type of Solo Sign-off
     */
    solo("solo"),
    /**
     * <code>Endorsement</code> type of Cross-country Sign-off
     */
    crossCountry("crossCountry"),
    /**
     * <code>Endorsement</code> type of Multi-Engine Sign-off
     */
    multiEngine("multiEngine"),
    /**
     * <code>Endorsement</code> type of Private License
     */
    privateLicense("privateLicense"),
    /**
     * <code>Endorsement</code> type of Instrument Sign-off
     */
    instrument("instrument"),
    /**
     * <code>Endorsement</code> type of Commercial License
     */
    commercialLicense("commercialLicense"),
    /**
     * <code>Endorsement</code> type of Airline Transport Pilot
     */
    atp("atp"),
    /**
     * <code>Endorsement</code> type of Instructor Rating
     */
    instructorRating("instructorRating"),
    /**
     * <code>Endorsement</code> type of None
     */
    none("none");
    
    private String name;

    /**
     * Creates Endorsement
     * @param shortH
     * Takes abbreviation of Endorsement
     */
    Endorsement(String name) {
        this.name = name;
    }

    /**
     * Gets representation of Endorsement
     * @return
     * shortHand
     */
    public String getRank() {
        return this.name;
    }
}
